#ifndef SESSION_VALIDATOR_H
#define SESSION_VALIDATOR_H

#include "ExportDefine.h"
#include "singleton.h"
#include "typedef.h"
#include <map>

class EXPORT CSessionValidator :  public CSingleton<CSessionValidator>
{
    typedef std::map<uint32, uint32> TTokenContainer;
public:
    void AddToken(uint32 nUsdId, uint32 nToken);

    bool IsValid(uint32 nUsdId, uint32 nToken);
private:
    TTokenContainer m_Tokens;
};

#endif // endif of SESSION_VALIDATOR_H
